package com.android.widget.imgtxtimg;
import android.os.Parcelable;
import android.os.Parcel;
public class ImgTxtImg implements Parcelable {
    public String txt;
    public int url1;
    public int url2;
    public ImgTxtImg() {
    }
    public ImgTxtImg(String txt, int url1, int url2) {
        this.txt = txt;
        this.url1 = url1;
        this.url2 = url2;
    }

    @Override
    public int describeContents() {
        return 0;
    }    
    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(txt);
        dest.writeInt(url1);
        dest.writeInt(url2);
    }
    
    public static Creator<ImgTxtImg> CREATOR = new Creator<ImgTxtImg>() {
        @Override
        public ImgTxtImg createFromParcel(Parcel source) {
            ImgTxtImg me = new ImgTxtImg();
            me.txt = source.readString();
            me.url1 = source.readInt();
            me.url2 = source.readInt();
            return me;
        }
        @Override
        public ImgTxtImg[] newArray(int size) {

            return new ImgTxtImg[size];
        }
    };
}
